<?php require_once 'header.php';?>    
<!-- DataTables Responsive CSS -->
    <link href="sb2/vendor/datatables-responsive/dataTables.responsive.css" rel="stylesheet">
        <!-- Page Content -->
        <div id="page-wrapper">
            <div class="container-fluid">
                <div class="row">
                <div class="col-lg-12">
                    <div class="panel panel-default">
                        <div class="panel-heading">
                        	<?php echo XXF_BACK?>
                            <?php echo XXF_LNAME?>
                        </div>
                        <!-- /.panel-heading -->
                        <div class="panel-body">
                            <h3>评语：</h3>
                            <div>
                            <?php 
                            foreach ($result as $row){
                                if(strlen(trim($row['beizhu']))>3){
                                    echo "《".$row['beizhu']."》";
                                }
                            }
                            ?>
                            </div>
                        	<hr>
                        	评教人数：<?php echo count($result)?>
                            <table width="100%" class="table table-striped table-bordered table-hover" id="dataTables-example">
                                <thead>
                                    <tr>
                                        <th>序号</th>
                                        <th>标题</th>
                                        <th>选项</th>
                                        <th>评教结果</th>
                                        <th>本人平均分</th>
                                        <th>本班平均分</th>
                                    </tr>
                                </thead>
                                <tbody>
                                	<?php
                                	$tm=["仪容仪表","上课迟到、早退","课堂上干别的事，如抽烟、接手机等","课后辅导","课堂纪律管理","关心学生身心健康","讲课的逻辑性","课堂上的遣词用句","上课声音洪亮、口齿清楚","讲课用普通话","板书情况","课前准备情况","批改作业","课堂教学内容安排","上课做到循循善诱、启发学生","是否归纳教学重点和学习方法","上新课时，注意新旧知识的联系","对学生积极性的调动","理论联系实际","专业（学科）知识"];
                                	$xx=[["大方得体","象个教师","有些随便","不够检点"],["从来没有","极个别现象","有时发生","经常"],["从来没有","偶尔","有几次","多次"],["经常","较经常","一般","很少"],["严格且注意方式","比较.严格","有时也管","放任自流"],["关心","较关心","有时关心","很少关心"],["强","较强","一般","差"],["精妙","较少废话","有点哆嗦","哆嗦，口头语多"],["完全如此","可以听清","勉强听清","听不清"],["标准","较标准","一般","不标准（用方言）"],["工整规范","看得清","还可以","乱七八糟"],["很充分","较充分","不太充分","几无准备"],["及时认真","较认真","大体看一下","不负责任"],["合理","太多","太少","马虎随意"],["好","较好","一般","差"],["是","较少","极少","一次也不"],["非常注意","比较注意","较少注意","完全不复习旧课"],["非常有效","比较有效","一般","完全没有作用"],["紧密","较密切","一般","纯理论"],["扎实深厚","较深厚","一般","肤浅"]];
                                	$abc=['A','B','C','D'];
                                	$fen=array('A'=>5,'B'=>4,'C'=>3,'D'=>2);
                                	for($i=0;$i<count($tm);$i++){
                                	?>
                                    <tr class="<?php echo $i%2==0?"even":"odd";?> gradeA ">
                                    	<td><?php echo ($i+1);?></td>
                                    	<td><?php echo $tm[$i];?></td>
										<td>
										<?php
										for($j=0;$j<count($xx[$i]);$j++){
										    echo $abc[$j]." ".$xx[$i][$j]." ";
										}
										?>
										</td>
                                    	<td><?php echo $tjxx[$i];?></td>
                                    	<td>
                                    	<?php 
                                	    $pjf=0;
                                    	for($j=0;$j<strlen($tjxx[$i]);$j++){
                                    	   $pjf+=$fen[$tjxx[$i][$j]];
                                    	}
                                    	echo round($pjf/$j,4);
                                    	?>
                                    	</td>
                                        <td>
                                        <?php echo round($avgtjxx[$i]/$zongrenshu,4)?>
                                        </td>
                                    </tr>
                                	<?php 
                                	}
                                	?>
                                </tbody>
                            </table>
                            
                        </div>
                        <!-- /.panel-body -->
                    </div>
                    <!-- /.panel -->
                </div>
                <!-- /.col-lg-12 -->
            </div>
            <!-- /.row -->
             </div>
        </div>
        <!-- /#page-wrapper -->
  </div>
        <!-- DataTables JavaScript -->
<?php require_once 'bottom.php';?>
    <script src="sb2/vendor/datatables/js/jquery.dataTables.js"></script>
    <script src="sb2/vendor/datatables-plugins/dataTables.bootstrap.min.js"></script>
    <script src="sb2/vendor/datatables-responsive/dataTables.responsive.js"></script>
    <script>
    $(document).ready(function() {
        $('#dataTables-example').DataTable({
            responsive: true,
            "aaSorting": [[ 0, "asc" ]],
            "aLengthMenu": [ 200, 100, 50, 10 ]
        });
    });
	
    </script>